
<template>
	<view>
		<view class="single-graph" v-if="value">
			<!-- <image v-if="value[0].adv_show_type == 1" @click="redirectTo(value[0].href)" :src="$util.img(value[0].src)" mode="widthFix"></image> -->
			<swiper class="swiper" autoplay="true" indicator-dots="true" indicator-active-color="#ffffff">
				<swiper-item v-for="(item, index) in value" :key="index" v-if="item.path" @click="redirectTo(item.link)">
					<image :src="$util.img(item.path)" mode="widthFix"></image>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
export default {
	name: 'lrwMBanner',
	props: {
		value: {
			type: Array
		}
	},
	data() {
		return {};
	},
	created() {},
	methods: {
		redirectTo(link) {
			this.$emit('redirectTo', link);
		}
	}
};
</script>

<style lang="scss" scoped>
.single-graph {
	width: 100%;
	line-height: 0;
}
.single-graph image {
	width: 100%;
}
</style>
